package com.jie.service.impl;

import com.jie.service.ILikeService;
import org.springframework.stereotype.Service;
/**
 * <p>
 * 论坛评论表 点赞类
 * </p>
 *
 * @author xainsir
 * @since 2024-07-10
 */
@Service
public class LikeServiceImpl implements ILikeService {

    @Override
    public Boolean likeByCommentId(Integer commentId) {
        //点赞逻辑应该交于redis，还要记录文章浏览量RedisCount注解即可 使用这个注解可以参考ActivityController 因为要在返回的时候包装一个rediscount类
        // 如果要获取浏览量就直接 Long count = redisTemplate.opsForHyperLogLog().size(key+文章id);
        return true;
    }

    @Override
    public Boolean likeUserByUid(Integer uid) {
        return true;
    }

    @Override
    public Boolean likeByArticleId(Integer articleId) {
        return true;
    }
}
